import VisitData from "../module/VisitData";
import { ActionType } from "../../index";

export function init(componentId: string, data: VisitData) {
  return async (dispatch: any) => {
    if (data) {
      dispatch({
        type: ActionType.SCHADULE_VISIT_INIT,
        componentId,
        data: data.getData(),
        moreItem: data.getLayout(),
      });
    }
  };
}

export function refreshData() {
  return async (dispatch: any) => {};
}
